from dataclasses import dataclass, fields

from common.pyside2_table.qtable import BaseModel


@dataclass
class DRCS(BaseModel):
    file_channel: str = ""
    title: str = ""
    comment: str = ""
    checker: str = ""
    approver: str = ""
    cc: str = ""
    doc_json: dict = ""
    contract_id: str = ""
    url: str = ""
    channel: str = ""
    project: str = ""
    receiver_code: str = ""
    sys_attachment: str = ""
    data_publish: str = ""


@dataclass
class IDRS(BaseModel):
    channel: str = ""
    file_channel: str = ""
    project: str = ""
    title: str = ""
    comment: str = ""
    doc_json: dict = ""
    contract_id: str = ""
    assister: str = ""
    url: str = ""
    sys_attachment: str = ""
    data_publish: str = ""
